#pragma once

#include "base_autoresize_table.h"

class table_view
        : public base_autoresize_table
{
    Q_OBJECT

public:
    explicit table_view(const QSize &max_size = QSize(300, 300), QWidget *parent = 0);

    void auto_resize() override;

private:
    int min_width_for_content () const override;
    int min_height_for_content() const override;

private:
    QSize               max_size_;
};

